package com.taotao.adapter.controller.impl;

import com.taotao.adapter.controller.Controller;
import com.taotao.adapter.controller.ControllerAdapter;

/**
 * @Author: wangjin
 * @CreateTime: 2022-06-27  21:00
 */
public class AnnotationControllerAdapter implements ControllerAdapter {
    @Override
    public boolean supports(Controller controller) {
        return controller instanceof AnnotationController;
    }

    @Override
    public void handler(Controller controller) {
          AnnotationController annotationController= (AnnotationController) controller;
        annotationController.handleRequest();
    }
}
